//此文件用来管理是否固定主界面的Header部分以及是否显示主界面左侧Logo部分的仓库--bool（暂时不重要，可忽略）

import defaultSettings from '@/settings'
import { defineStore } from 'pinia'

const { fixedHeader, sidebarLogo } = defaultSettings

export const useSettingsStore = defineStore({
  id: 'settings',
  
  state: () => ({
    fixedHeader,
    sidebarLogo
  }),
  
  actions: {

    setFixedHeader (val: boolean) {
      this.fixedHeader = val
    },

    setSidebarLogo (val: boolean) {
      this.sidebarLogo = val
    }
  }
})
